﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplateItem.aspx.cs" Inherits="Manage_Cms_TemplateItem" %>
<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body >
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
            <div class="columntitle"><%=ActName %>模板</div>
        <form id="myForm" name="myForm" method="post" action="?act=<%=ActFlag %>" onsubmit="return validator(this)" >
            <table cellpadding="6" width="100%" align="center">
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模板名称" onclick="helpInf(this)" />
                        名称：</td>
                    <td align="left">
                        <input  name="TemplateName" type="text" value="<%=modelCmsTemplate.TemplateName %>" valid="required" errmsg="请输入模板名称" />
                    </td>
                </tr>
                               
                <tr>
                    <td align="left" >
                        <img src="../pic/icons/help.gif" alt="模板文件夹名称" onclick="helpInf(this)" />
                        文件夹名称：</td>
                    <td align="left">
                        <input name="TemplateFolder" type="text" value="<%=modelCmsTemplate.TemplateFolder %>" valid="required" errmsg="请输入文件夹名称"" />
                    </td>
                </tr>
                
                <tr>
                    <td align="left" >
                        <img src="../pic/icons/help.gif" alt="模板文件夹路径" onclick="helpInf(this)" />
                        文件夹路径：</td>
                    <td align="left">
                        <input  name="TemplateDir" type="text" value="<%=modelCmsTemplate.TemplateDir==null?@"D:\iPortal\KeRui.Source\Template":modelCmsTemplate.TemplateDir %>" valid="required" errmsg="文件夹路径" />
                    </td>
                </tr>
                
                <tr>
                    <td align="left" >
                        <img src="../pic/icons/help.gif" alt="选择服务器" onclick="helpInf(this)" /> 服务器：</td>
                    <td align="left">
                        <select name="ServerID" valid="required" errmsg="请选择服务器">
                            <%=KeRui.BLL.Common.GetSelectList(modelCmsTemplate.ServerID, bllCmsServer.GetSelect1())%>
                        </select>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2" align="center" class="tdbutton">
                        <input type="submit" value="确 定"  />&nbsp;&nbsp;
                        <input type="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');"/>
                        <input type="hidden" value="<%=modelCmsTemplate.TemplateID %>" name="TemplateID" />
                    </td>
                </tr>
            </table>
        </form>
        
    </div>
</body>
</html>
